<?php
// contact to database
$connect = mysql_connect("localhost", "root", "") or die ("Error , check your server connection.");
mysql_select_db("stms");

$usertype=$_POST['usertype'];
$username=$_POST['username'];
$pass=$_POST['password'];
$password=md5($pass);
$userid=$_POST['userid'];



$query="insert into user values('$username','$password','$usertype','$userid')";

mysql_query($query)  or die(mysql_error());
	echo "Your message has been received";





?>